package cn.zwk.common.model;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

/**
 * 基础分页请求对象
 *
 * @author haoxr
 * @since 2021/2/28
 */
@Data
public class BasePageQuery {

    private int pageNum = 1;

    private int pageSize = 10;

    public <T> Page<T> buildPage(){
        return new Page<>(pageNum, pageSize);
    }
}
